package com.yanqu.road.entity.activity.suitang.enums;

public enum eSuiTangLogType {
    LOG_TYPE_BARRACKS(1, "兵营日志"),
    LOG_TYPE_COMMAND(2, "战略日志"),
    LOG_TYPE_COMMAND_SET(3, "指挥官设置日志"),
    LOG_TYPE_GROUP(4, "分组日志"),
    LOG_TYPE_LOCK(5, "锁定日志"),
    LOG_TYPE_LOCK_JOIN(6, "加入锁定商会日志"),
    LOG_TYPE_MINXIN(7, "民心日志"),
    LOG_TYPE_OCCUPY(8, "占领日志"),
    LOG_TYPE_JUNZI(9, "军资征收日志"),
    LOG_TYPE_SYNC_ABILITY(10, "同步战力日志"),
    ;


    /**
     * 类型
     */
    private int type;

    /**
     * 名称
     */
    private String name;

    eSuiTangLogType(int type, String name) {
        this.type = type;
        this.name = name;
    }

    public int getType() {
        return type;
    }

    public String getName() {
        return name;
    }

    public static eSuiTangLogType forValue(int type) {
        for (eSuiTangLogType cityTypeEnum : values()) {
            if (cityTypeEnum.getType() == type) {
                return cityTypeEnum;
            }
        }
        return null;
    }
}
